package com.cw.action.panel;

import java.awt.Color;

import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.SwingConstants;

import com.cw.maintenance.AddDataDialog;
import com.cw.po.Lottery;

public class DataCheckPanel extends CheckPanel {

	public DataCheckPanel(AddDataDialog parent, Lottery lottery) {
		super(parent, lottery);
		setDialogSize(800, 250);
		gridLayout1.setColumns(8);
		gridLayout1.setHgap(5);		
	}

	@Override
	void createRowPanel(int row) {
		for (int j = 0; j < col; j++) {
			JLabel labelD = new JLabel("th-"+(j+1));
			labelD.setHorizontalAlignment(SwingConstants.RIGHT);
			labelD.setForeground(Color.RED);
			add(labelD);
			cpball[row * col + j] = new JComboBox(DATA);
			add(cpball[row * col + j]);
			cpball[row * col + j].setEnabled(false);
		}
	}

}
